//
// Created by ftd on 2021/8/18.
//

#ifndef DEMO_SYSTEM_CONFIG_H
#define DEMO_SYSTEM_CONFIG_H
#include <map>

// 房间操作配置
struct RoomOperateCfg {
    char operate_info[100];
};

class SystemConfig {
public:
    ~SystemConfig();
    SystemConfig(const SystemConfig&) = delete;
    SystemConfig& operator= (const SystemConfig&) = delete;
    static SystemConfig& Instance();
    // 加载配置
    bool LoadConig();
    // 获取房间配置
    const std::map<int, RoomOperateCfg>* GetConfig() {
        return &room_operate_config_;
    }

private:
    SystemConfig();

    // 房间操作配置
    std::map<int, RoomOperateCfg> room_operate_config_;
};


#endif //DEMO_SYSTEM_CONFIG_H
